<template>
	<view>
		<view v-for="(item, index) in datalist" style=" margin:10rpx">
			<CustomTextView :nid="item.nID" :title="item.title" :isTop="item.isTop" :author="item.author"
				:comments="item.comments" :time="item.time" @click="onCustomViewClick(index)">
			</CustomTextView>
		</view>
	</view>
</template>

<script>
	import CustomTextView from "../../components/cardViewText.vue"
	export default {
		components: {
			CustomTextView
		},
		data() {
			return {
				datalist: [{
					nID: "T15627",
					title: "14个月从100家开到1000家门店，蜜雪冰城为何买下这家精酿啤酒商",
					isTop: true,
					author: "界面新闻",
					comments: 56,
					time: "2025.10.07"
				}, {
					nID: "B4485",
					title: "把握历史大势 共创美好未来（观沧海）",
					isTop: false,
					author: "人民日报",
					comments: 1025,
					time: "2025.10.25"
				},
					{nID: "B1126",
					title: "小鸡仔中国体彩又中100W!",
					isTop: false,
					author: "小道消息",
					comments: 10000,
					time: "2025.11.26"
				},
				{nID: "B4564",
					title: "小鸡仔减肥，瘦了20kg！",
					isTop: false,
					author: "大道消息",
					comments: 100000,
					time: "2025.11.2"
				}
				]
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>